Socket
Socket
Sign inDemoInstall

@ckeditor/ckeditor5-table

Package Overview
Dependencies
2
Maintainers
1
Versions
500
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckeditor/ckeditor5-table


Version published
Weekly downloads
422K
increased by1.14%
Maintainers
1
Created
Weekly downloads
 

Package description

What is @ckeditor/ckeditor5-table?

@ckeditor/ckeditor5-table is a plugin for CKEditor 5 that provides table editing capabilities. It allows users to create, edit, and manage tables within the CKEditor 5 rich text editor.

What are @ckeditor/ckeditor5-table's main functionalities?

Creating a Table

This code initializes the CKEditor with table creation capabilities. The toolbar includes options to insert a table, add columns, add rows, and merge cells.

ClassicEditor.create(document.querySelector('#editor'), { plugins: [ Table, TableToolbar ], toolbar: [ 'insertTable', 'tableColumn', 'tableRow', 'mergeTableCells' ] })

Inserting a Table

This code demonstrates how to programmatically insert a 3x3 table into the editor.

editor.execute('insertTable', { rows: 3, columns: 3 })

Adding a Column

This code shows how to add a column to the right of the selected cell in the table.

editor.execute('insertTableColumn', { at: 'right' })

Adding a Row

This code demonstrates how to add a row below the selected cell in the table.

editor.execute('insertTableRow', { at: 'below' })

Merging Cells

This code shows how to merge selected cells in the table.

editor.execute('mergeTableCells')

Other packages similar to @ckeditor/ckeditor5-table

Readme

Source

CKEditor 5 table feature

npm version Coverage Status Build Status Dependency Status

This package implements table support for CKEditor 5.

Demo

Check out the demo in the table feature guide.

Documentation

See the @ckeditor/ckeditor5-table package page in CKEditor 5 documentation.

License

Licensed under the GPL, LGPL and MPL licenses, at your choice. For full details about the license, please check the LICENSE.md file or https://ckeditor.com/legal/ckeditor-oss-license.

Keywords

FAQs

Last updated on 07 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc